package tester;

import static org.junit.Assert.*;
import mock.MockUserLineItem;

import org.junit.Test;

import java.util.ArrayList;

import po.StudentPO;
import businesslogicservice.ResultMessage;
import businesslogicservice.UserBLService_Stub;
import businesslogicservice.UserLineItem;





public class AddUserTest {

	@Test
	public void testAddUser() {
		MockUserLineItem mockUserLineItem = new MockUserLineItem(new StudentPO(121250230,"David","121250230",4.1,21));
		ArrayList<UserLineItem> studentList = new ArrayList<UserLineItem>();
		
		studentList.add(mockUserLineItem);
		
		UserBLService_Stub userBLService_Stub = new UserBLService_Stub();
		
		ResultMessage resultMessage = userBLService_Stub.addUser(studentList);
		
		assertEquals(ResultMessage.ADD_USER_SUCCESS,resultMessage);
	
		
		
	}

}
